import 'package:flutter/material.dart';
import 'package:flutter_screenutil/flutter_screenutil.dart';
import 'package:gczn_hd/app/core/base/base_view.dart';
import 'package:gczn_hd/app/core/widget/custom_app_bar.dart';
import 'package:gczn_hd/app/modules/ppm/report_detail/widget/form_left.dart';
import 'package:gczn_hd/app/modules/ppm/report_detail/widget/form_right.dart';
import 'package:get/get.dart';
import 'package:gczn_hd/app/core/values/app_values.dart';
import 'package:gczn_hd/app/core/widget/gczn_card.dart';
import '../controllers/report_detail_controller.dart';

class ReportDetailView extends BaseView<ReportDetailController> {

  @override
  PreferredSizeWidget? appBar(BuildContext context) => const CustomAppBar(appBarTitleText: "报工详情");


  @override
  Widget body(BuildContext context) {
    const double boxWidth = 587.0;
    const double boxHeight = 870.0;

    return SingleChildScrollView(
        child: Container(
          padding: EdgeInsets.only(top: AppValues.size40.h, left: AppValues.size40.w, right: AppValues.size40.w),
          child: Row(
            children: [
              GcznCard(
                  child: Container(
                    width: boxWidth.w,
                    height: boxHeight.h,
                    padding:  EdgeInsets.only(top: AppValues.size28.h, left: AppValues.size26.w, bottom: AppValues.size28.h, right: AppValues.size26.w),
                    child: FormLeft()
                  )
              ),
              SizedBox(width: AppValues.size40.w,),
              Expanded(
                flex: 1,
                child: GcznCard(
                  child: Container(
                      height: boxHeight.h,
                      padding: EdgeInsets.only(top: AppValues.size28.h, left: AppValues.size26.w, bottom: AppValues.size28.h, right: AppValues.size26.w),
                      child: FormRight()
                  ),
                ),
              )
            ],
          ),
        )
    );

  }

}
